package com.westar.core.services;

import com.westar.base.model.SystemLog;
import com.westar.core.dao.SystemLogDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class SystemLogService {

    @Autowired
    private SystemLogDao systemLogDao;

    /**
     * 添加日志
     * @param account
     * @param affairCode
     * @param state
     * @param logInfo
     */
    public void addSystemLog(String account,String affairCode,String state,String logInfo){
        SystemLog systemLog = new SystemLog();
        systemLog.setAccount(account);
        systemLog.setAffairCode(affairCode);
        systemLog.setState(state);
        systemLog.setLogInfo(logInfo);

        systemLogDao.add(systemLog);
    }

}
